Print numbers from 1 to 100 in Python using function